#include "class-controller.h"

int cController::addToAssets(){

	// Create a pointer to a new instance of cAnimation Class
	cAsset *pointerToAssetObject = new cAsset();

	// Push the pointer to the new cAnimation object to the assets vector stack
	assets.push_back(pointerToAssetObject);

	// return the index of the vector
	return assets.size()-1;
}

int cController::addToAnimations(){

	// Create a pointer to a new instance of cAnimation Class
	cAnimation *pointerToAnimationObject = new cAnimation();

	// Push the pointer to the new cAnimation object to the animations vector stack
	animations.push_back(pointerToAnimationObject);

	// return the index of the vector
	return animations.size()-1;
}

int cController::addToEntities(){

	// Create a pointer to a new instance of cEntity Class
	cEntity *pointerToEntityObject = new cEntity();

	// Push the pointer to the new cAnimation object to the entities vector stack
	entities.push_back(pointerToEntityObject);

	// return the index of the vector
	return entities.size()-1;
}